/*
 *  Copyright (C) 2009 Dominik Psenner
 * 
 *   This file is part of WebDAV4JD.
 *
 *  WebDAV4JD is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  WebDAV4JD is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with project-blog.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package com.lab9.webdav4jd.api;

import java.util.Date;


/**
 * @author dominik
 * 
 */
public interface WebDAVRepository {
	/**
	 * retrieves the node associated to a path.
	 * 
	 * @param path
	 * @return
	 */
	public Node getNode(String path);
	
	/**
	 * retrieves the node associated to path at revision.
	 * 
	 * @param path
	 * @param revision
	 * @return
	 */
	public Node getNode(String path, int revision);
	
	/**
	 * retrieves the node associated to path at the revision near date.
	 * 
	 * @param path
	 * @param revisionNear
	 * @return
	 */
	public Node getNode(String path, Date revisionNear);
}
